package com.fire.control.system.module.system.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import com.fire.control.system.dto.AppManagerDto;

/**
 * 
 * @ClassName: AppManagerMapper
 * @Description: TODO(app升级管理)
 * @author: tanyuting
 * @date: 2017年7月1日 下午4:27:28
 */
public interface AppManagerMapper {
	
	
	/**
	 * 
	 * @Title: getAppManagerList
	 * @Description: TODO (app升级列表管理)
	 * @param dto
	 * @return
	 * @return: List<AppManagerDto>
	 *@author: tanyuting
	 */
	public List<AppManagerDto> getAppManagerList(AppManagerDto dto);
	
	

	/**
	 * 
	 * @Title: addAppManager
	 * @Description: TODO(添加app升级)
	 * @param dto
	 * @return
	 * @return: int
	 *@author: tanyuting
	 */
	public int addAppManager(AppManagerDto dto);
	
	
	/**
	 * 
	 * @Title: updateAppManager
	 * @Description: TODO修改app是否启用
	 * @param id
	 * @return
	 * @return: int
	 *@author:tanyuting
	 */
	@Update("UPDATE t_app_manager t set `enable`=1 where id=#{id}")
	public int enableAppManagerStatus(@Param("id") String id);
	
	@Update("UPDATE t_app_manager t set `enable`=0")
	public int displayAppManagerStatus();
	
	
}
